/*
 * @Descripttion: 
 * @Author: 周杨
 * @Date: 2021-08-09 18:17:36
 * @LastEditors: 周杨
 * @LastEditTime: 2021-09-22 19:27:52
 */
/**
 * 全局组件
 * 
 */
import Vue from 'vue'

import lang from 'element-ui/lib/locale/lang/en'
import locale from 'element-ui/lib/locale'
import VuePhoneNumberInput from '@/components/vue-phone-number-input'

import BaseBanner from '@/components/Base/BaseBanner.vue'
import BaseIframe from '@/components/Base/BaseIframe.vue'
import BaseNull from '@/components/Base/BaseNull.vue'

import { Popconfirm, Button, Message, Loading, Form, Row, Col, FormItem, Input, Radio, Select, Option, ButtonGroup, Calendar, Pagination, Dialog, DatePicker, Upload, Avatar } from 'element-ui';

import '@/components/vue-phone-number-input/dist/vue-phone-number-input.css'

locale.use(lang)

Vue.component(Button.name, Button);
Vue.component(Form.name, Form);
Vue.component(Row.name, Row);
Vue.component(Col.name, Col);
Vue.component(FormItem.name, FormItem);
Vue.component(Input.name, Input);
Vue.component(Radio.name, Radio);
Vue.component(Select.name, Select);
Vue.component(Option.name, Option);
Vue.component(ButtonGroup.name, ButtonGroup);
Vue.component(Calendar.name, Calendar);
Vue.component(Pagination.name, Pagination);
Vue.component(DatePicker.name, DatePicker);
Vue.component(Dialog.name, Dialog);
Vue.component(Avatar.name, Avatar);
Vue.component(Upload.name, Upload);
Vue.use(Popconfirm)
Vue.use(Loading.directive);

Vue.prototype.$message = Message;
//banner组件
Vue.component('BaseBanner', BaseBanner)
Vue.component('BaseIframe', BaseIframe)
Vue.component('BaseNull', BaseNull)

Vue.component('vue-phone-number-input', VuePhoneNumberInput)